package com.example.day04.homework;

public class TestProduct {
    public static void main(String[] args) {

        Product P1=new Product(1,"毛笔",20.5,"江苏省无锡市");
        Product P2=new Product(2,"上衣",80,"江苏省无锡市");
        Product P3=new Product(3,"裤子",120,"江苏省无锡市");
        Product P4=new Product(4,"汽车",2000000,"江苏省无锡市");
        Product P5=new Product(5,"手机",1000,"江苏省无锡市");
        Product P6=new Product(6,"电脑",10000,"江苏省无锡市");
        Product P7=new Product(7,"电视机",3000,"江苏省无锡市");
        Product P8=new Product(8,"鞋子",250,"江苏省无锡市");
        Product P9=new Product(9,"席子",40,"江苏省无锡市");
        Product P10=new Product(10,"水杯",66,"江苏省无锡市");

       ProductPartent partent=new ProductPartent();
       partent.addProduct(P1);
        partent.addProduct(P2);
        partent.addProduct(P3);
        partent.addProduct(P4);
        partent.addProduct(P5);
        partent.addProduct(P6);
        partent.addProduct(P7);
        partent.addProduct(P8);
        partent.addProduct(P9);
        partent.addProduct(P10);
        System.out.println("======================================\n");
        partent.showproduct();

        System.out.println("======================================\n");
        partent.moreThreehundred();

        System.out.println("======================================\n");
        partent.sortPrice();
    }



}
